﻿@model IEnumerable<VOD.Models.Video>
@{var i=1;}
@if (Model.Count() <= 0)
{
    <p style="color:white;">暂无内容！</p>
}
else
{
    foreach (var item in Model)
    {
        if (i == 1)
        {
        <dl>
            <dt><span class="color_1">1.</span> <a href="@Url.Content("~/Video/Play" + item.VideoID)" title="@item.Name" target="_blank">
                <img src="@Url.Content("~/Content/images/VideoImg/" + item.VideoID + ".jpg")" onerror="javascript:this.src='@Url.Content("~/Content/images/nopic.jpg")'" width="60" height="80" alt="@item.Name" /></a>
            </dt>
            <dd>
                <a href="@Url.Content("~/Video/Play/" + item.VideoID)" title="@item.Name" target="_blank">@item.Name</a>
            </dd>
        </dl>
        @Html.Raw("<ul class=\"phbList\">")
        }
        else if (i < 4)
        {
            <li><span class="color_@(i)">@i.</span> @Html.ActionLink(item.Name, "Play", new { id = item.VideoID }, new { title = item.Name, target = "_blank" }) </li>
        }
        else
        {
            <li><span class="color_grey">@i.</span> @Html.ActionLink(item.Name, "Play", new { id = item.VideoID }, new { title = item.Name, target = "_blank" }) </li>
        }
        i++;
    }
    @Html.Raw("</ul>")
}